package main

import "fmt"

type Book111 struct {
	id     int
	name   string
	author string
	title  string
}

func changeBook111(book111 Book111) {
	book111.title = "千羽的编程时光"
}
func changeBook222(book111 *Book111) {
	book111.title = "千羽的编程时光"
}

func main() {
	var book1 Book111
	book1.id = 111
	book1.name = "我爱睡觉"
	book1.title = "go语言编程"
	book1.author = "桐杰"
	fmt.Println(book1.title, book1.name, book1.author)
	fmt.Printf("%v\n", book1)
	changeBook111(book1)
	fmt.Printf("%v\n", book1)
	changeBook222(&book1)
	fmt.Printf("%v\n", book1)

}
